import 'package:cjybase_example/page/network/network_page_state.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:cjybase/util/string_util.dart';

class NetworkPageView extends NetworkPageState {
  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        appBar(
          title: '网络请求案例',
          view: Row(
            children: [
              Icon(Icons.ac_unit),
              Text("登录"),
            ],
          ),
          viewClick: (){
            '点击率'.toast();
          }
        ),
        TextButton(
          child: Text("请求"),
          onPressed: click,
        ),
        Text(netData),
      ],
    );
  }
}
